package io.github.i678.namedutils.api.utils;

import io.github.i678.namedutils.api.utils.ConfigurationUtils;

public class CommandUtils {

    public static String usage(String label) {
        String usage = ConfigurationUtils.getString("command.usage");
        usage.replaceAll("{COMMAND}", "/" + label);
        return usage;
    }

    public static String cast(String[] args) {
        String cast = "";
        for(String s : args) {
            cast += (cast.equals("") ? "" : " ") + s;
        }
        return cast;
    }

}